﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Model = BLL.Model;
using Entity = DAL.DbEntity;

namespace DAL.Translator
{
    public class ProductTranslator
    {
        public static Model.Product TranslateBusinessToDbEntity(Entity.Product request)
        {
            Model.Product response = null;
            if (request != null)
            {
                response = new Model.Product();
                response.ProductId = request.ProductId;
                response.ProductName = request.ProductName;
                response.ProductPrice = request.ProductPrice;
            }
            return response;
        }
    }
}
